﻿using JTTD.Common.Enum;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace JTTD.DataBase.Model.Activity
{
    /// <summary>
    /// 商城活动信息
    /// </summary>
    [Table("t_activity_info")]
    public  class ActivityInfoModel:BaseModel
    {
        /// <summary>
        /// 活动编号
        /// </summary>
        [Column("no")]
        public string No { get;  set; } 
        /// <summary>
        /// 活动名称
        /// </summary>
        [Column("name")]
        public string Name { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        [Column("startTime")]
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [Column("endTime")]
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 活动类型：0固定积分，1倍数积分
        /// </summary>
        [Column("type")]
        public ActivityTypeEnum Type { get; set; }
        /// <summary>
        /// 活动赠送积分金额
        /// </summary>
        [Column("integralAmount")]
        public decimal IntegralAmount { get; set; } = 0;
        /// <summary>
        /// 账单转换积分倍数
        /// </summary>
        [Column("multiple")]
        public decimal Multiple { get; set; } = 0;
        /// <summary>
        /// 备注
        /// </summary>
         [Column("remark")]
        public string Remark { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        [Column("isEnable")]
        public bool IsEnable { get; set; } = false;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("isDelete")]
        public bool IsDelete { get; set; } = false;

        /// <summary>
        /// 活动图片
        /// </summary>
        [Column("photo")]
        public string Photo { get; set; }
    }
}
